package com.tc.dispatch.web.common.general;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;

/**
 * <p>Title: tcweb</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: zju</p>
 * @author  jackyjia
 * @version 1.0
 */

public class test_servlet extends HttpServlet {
  private static final String CONTENT_TYPE = "text/html; charset=GBK";
  //Initialize global variables
  public void init() throws ServletException {
  }
  //Process the HTTP Get request
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String var0 = request.getParameter("id");
    String var1 = request.getParameter("form_name");
    if (var0 == null) {
      var0 = "";
    }
    response.setContentType(CONTENT_TYPE);
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<head><title>test_servlet</title></head>");
    out.println("<body bgcolor=\"#ffffff\">");
    out.println("<p>The servlet has received a " + request.getMethod() + ". This is the reply.</p>");
    out.println("</body></html>");
  }
  //Process the HTTP Post request
  public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    doGet(request, response);
  }
  //Process the HTTP Put request
  public void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String var0 = request.getParameter("param0");
    if (var0 == null) {
      var0 = "";
    }
  }
  //Clean up resources
  public void destroy() {
  }
}